/*全局*/
*,
*:before,
*:after {
    box-sizing: border-box;
}

@media all and (min-width: 640px){
    html{font-size: 20px;}
}
@media all and (min-width: 480px) and (max-width: 639px){
    html{font-size: 15px;}
}
@media all and (min-width: 320px) and (max-width: 479px){
    html{font-size: 10px;}
}

body{
    font-size: 0.7rem;
    color:#333;
    font-family: Georgia, 'Xin Gothic', 'Hiragino Sans GB', 'Droid Sans Fallback', 'Microsoft YaHei', sans-serif;
}
a{
    color:#333;
    text-decoration:none;
}
a:hover{
    color: #2a6496;
}
code {
    font-family: Monaco,Consolas,Menlo,"Andale Mono","Courier New","Ubuntu Mono",Arial,"Microsoft YaHei","Hiragino Sans GB",sans-serif;
    margin: 0 2px;
    padding: 0 4px;
    border-radius: 4px;
    border-bottom: 0;
    word-break: break-word;
    white-space: pre-wrap;
    color: #c7254e;
    background-color: #f9f2f4;
    display: inline-block;
}
table {
    border-spacing: 0;
    border-collapse: collapse;
}
blockquote{
    border-left: 5px solid #ccc;
    text-indent: 1rem;
}

/*公用*/
.cl,
.clearfix
{
    *zoom: 1;
}
.cl:before,.cl:after,
.clearfix:before,.clearfix:after
{
    display: table;
    content: "";
    line-height: 0;
}
.cl:after,
.clearfix:after
{
    clear: both;
}
.fl{
    float:left;
}
.fr{
    float:right;
}

/*布局*/
#layout-left
{
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    width: 11rem;
    z-index: 2;
}
#layout-right
{
    margin-left: 11rem;
}
@media all and (min-width: 320px) and (max-width: 639px){
    #layout-left{display: none;}
    #layout-right{margin-left: 0;}
}
/*布局样式*/
.layout-left{
    padding-top: 0.75rem 0.75rem 0 0.75rem;
    color: #fff;
    background: url(../img/layout_left_bg.jpg);
    -webkit-box-shadow: -1px 1px 6px rgba(0,0,0,0.35);
    -moz-box-shadow: -1px 1px 6px rgba(0,0,0,0.35);
    box-shadow: -1px 1px 10px rgba(0,0,0,1);
}
.layout-right
{
    padding: 0.75rem 1rem;
}
/*头部*/
.header .logo
{
    text-align: center;
    font-size: 1.5rem;
    line-height:5rem;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}
.header .logo a{
    color: inherit;
}
.header .nav{
    font-size: 0.75rem;
    font-weight:bold;
    line-height:2rem;
    text-align:center;
    margin:1rem 0;
}
.header .nav a{
    color:#fff;
}
.header .nav a:hover{
    text-decoration:underline;
}
.header .nav ul
{
    list-style: none;
    padding:0;
    margin:0;

}

/*MINI顶部*/
.top-mini{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    line-height: 3rem;
    padding: 0 1rem;
    color: #8c92a4;
    background: #FCFCFC;
    border-bottom: 1px solid #dce3e8;
    z-index: 1;
    display: none;
}
.top-mini .logo{
    float: left;
    font-weight: bold;
    font-size: 1.5rem
}
.top-mini .btns{
    float: right;
    font-size: 1.5rem
}
.top-mini .btns a{
    font-size: 80%;
    padding: .2rem .6rem .3rem;
    text-align: center;
    font-weight: bold;
    border-radius: .25rem;
    border: 1px solid #dce3e8;
    background-color: #fcfcfc;
}
@media all and (min-width: 320px) and (max-width: 639px){
    .top-mini{display: block;}
    .layout-right{padding-top: 3.75rem;}
}

/*脚部*/
.footer
{
    font-size:0.75rem;
    text-align:center;
}


/*文章列表*/
.article-item a{
    color:#000;
}
.article-item a:hover{
    color: #2a6496;
}
.article-item
{
    border-bottom: 1px solid #ebeff2;
    padding: 1rem;
}
.article-item .title
{
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom:0.5rem;
    white-space: nowrap;  
    overflow: hidden;  
    text-overflow:ellipsis; 
}
.article-item .info
{
    font-size: 0.75rem;
    margin-bottom:0.5rem;
}
.article-item .info span
{
    margin-right:0.5rem;
}
.article-item .desc
{
    font-size: 1rem;
    text-indent: 2rem;
}
.article-page {
    margin: 0.5rem 0;
}
.article-page span,
.article-page a
{
    color:#333;
    display:inline-block;
    border: 1px solid #ccc;
    line-height:1.5rem;
    padding: 0 0.5rem;
}
.article-page a.current
{
    color: #ffffff;
    background-color:#25313e;
    border-right-color: #25313e;
    border-left-color: #25313e;
}
.article-page a:hover{
    color:#25313e;
}


/*文章详情*/
.article-detail .title
{
    font-weight: bold;
    font-size: 2.5rem;
}
.article-detail .info
{
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}
.article-detail .tags
{
    font-size: 0.75rem;
    margin-top:0.75rem;
    margin-bottom:0.5rem;
}
.article-detail .content
{
    font-size: 1rem;
}
.article-detail .content table th,
.article-detail .content table td
{
    border: 1px solid #ddd;
    padding: 0.5rem;
}

/*面包屑导航*/
.nav-crumb{
    font-size: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ebeff2;
}

/*标签按钮*/
a.btn-link
{
    padding: .2rem .6rem .3rem;
    vertical-align: text-top;
    text-align: center;
    font-size: 75%;
    font-weight: bold;
    color: #ffffff;
    border-radius: .25rem;
    background-color: #464C5E;
}
a.btn-link:hover
{
    color: #ffffff;
    background-color:#25313e;
}

/*分类列表*/
.article-category .title
{
    font-size: 1.5rem;
    margin-bottom:0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #ebeff2;
}
.article-category .list
{
    font-size: 1rem;
}
.article-category .list a{
    color: #428bca;
}
.article-category .list a:hover{
  color: #2a6496;
}
.article-category .list li
{
    margin-bottom: 0.5rem;
}

/*标签样式*/
.list-tag ul{
    list-style:none;
    padding:0;
    margin:0;
}
.list-tag ul li{
    float: left;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/*返回顶部*/
#top {
    display: none;
    position: fixed;
    _position: absolute;
    z-index: 5;
}
#rocket {
    position: fixed;
    _position: absolute;
    bottom: 8rem;
    right: 2rem;
    width: 26px;
    height: 48px;
    display: block;
    background: url("../img/top.png") no-repeat 50% -62px;
    transition: transform 1.5s ease-in;
    -webkit-transition: -webkit-transform 1.5s ease-in;
    -moz-transition: -moz-transform 1.5s ease-in;
    -o-transition: -moz-transform 1.5s ease-in;
    -ms-transform-origin: -ms-transform 1.5s ease-in;
}
#rocket.launch {
    transform: translateY(-1200px);
    -webkit-transform: translateY(-1200px);
    -moz-transform: translateY(-1200px);
    -o-transform: translateY(-1200px);
    -ms-transform: translateY(-1200px);
}
#rocket i {
    display: block;
    margin-top: 46px;
    height: 14px;
    background: url("../img/top.png") no-repeat 50% 100%;
    transform-origin: 50% 0;
    -webkit-transform-origin: 50% 0;
    -moz-transform-origin: 50% 0;
    -o-transform-origin: 50% 0;
    -ms-transform-origin: 50% 0;
}
#rocket.launch i {
    margin-top: 43px;
    transform: scale(1.4,3.2);
    -webkit-transform: scale(1.4,3.2);
    -moz-transform: scale(1.4,3.2);
    -o-transform: scale(1.4,3.2);
    -ms-transform: scale(1.4,3.2);
}